import request from '@/utils/request'

// 查询生产厂家列表
export function listPost(query) {
  return request({
    url: '/med/pro/list',
    method: 'get',
    params: query
  })
}

// 查询工厂详细 根据ID
export function getPost(producterId) {
  return request({
    url: '/med/pro/' + producterId,
    method: 'get'
  })
}

// 新增工厂
export function addPost(data) {
  return request({
    url: '/med/pro',
    method: 'post',
    data: data
  })
}

// 修改工厂
export function updatePost(data) {
  return request({
    url: '/med/pro',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delPost(producterId) {
  return request({
    url: '/med/pro/' + producterId,
    method: 'delete'
  })
}

// 导出岗位
export function exportPost(query) {
  return request({
    url: '/system/post/export',
    method: 'get',
    params: query
  })
}
